package com.laoye.service;


import com.laoye.bean.Order;
import com.laoye.bean.Product_Order;
import com.laoye.dto.OrderCreateDTO;
import com.laoye.dto.OrderDetail;
import com.laoye.dto.OrderEchartsDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface OrderService {
    void addOrder(OrderCreateDTO  order);
    Order getOrderById(Integer order_id);
    List<Product_Order> getProductById(Integer order_id);

    void updateSetPayTime(Integer id);

    List<OrderDetail> getOrderList(Byte status);

    void updateDeliveryTime(Integer id);

    void deleteOrder(Integer id);

    List<OrderDetail> getUserOrderList(Byte status);

    void completeOrder(Integer id);

    //订单数量统计
    List<OrderEchartsDTO> getOrderCount();
}
